#ifndef _PUBLIC_H
#define _PUBLIC_H

//数据类型重定义							/*1.先在public.h文件中重定义数据类型，因为后面的函数可能会用到*/
typedef signed char           int8_t;
typedef signed short int      int16_t;
typedef signed long int       int32_t;

typedef unsigned char          uint8_t;
typedef unsigned short int     uint16_t;
typedef unsigned long  int     uint32_t;

typedef     unsigned char   u8;
typedef     unsigned int    u16;
typedef     unsigned long   u32;


/* extern variables-----------------------------------------------------------*/
//extern Public_t Public;				/*5.用结构体类型定义一个变量后，用extern声明为外部可调用*/
/* extern function prototypes-------------------------------------------------*/ 

//定义枚举类型 -> BIT位
typedef enum
{
  BIT0 = (uint8_t)(0x01<<0),
  BIT1 = (uint8_t)(0x01<<1),
  BIT2 = (uint8_t)(0x01<<2),
  BIT3 = (uint8_t)(0x01<<3),
  BIT4 = (uint8_t)(0x01<<4),
  BIT5 = (uint8_t)(0x01<<5),
  BIT6 = (uint8_t)(0x01<<6),
  BIT7 = (uint8_t)(0x01<<7),
}BIT_t;


#endif